import axios from '@/libs/api.request'
// 活动列表
export const getActiveLists = data => axios.request({
  url: '/marketing/activity/list',
  method: 'post',
  data
})

// 活动编辑保存
export const saveActive = data => axios.request({
  url: '/marketing/activity/save',
  method: 'post',
  data
})

// 活动详情查询
export const queryActive = data => axios.request({
  url: '/marketing/activity/get',
  method: 'post',
  data
})

// 结束活动
export const closeActive = data => axios.request({
  url: '/marketing/activity/status/update',
  method: 'post',
  data
})

// 删除活动
export const delActive = data => axios.request({
  url: '/marketing/activity/delete',
  method: 'post',
  data
})
// 小游戏活动二维码
export const qrCodeActive = data => axios.request({
  url: '/marketing/activity/qrCode',
  method: 'post',
  data
})
// 分享活动二维码
export const qrCodeShare = data => axios.request({
  url: '/marketing/activity/share/qrCode',
  method: 'post',
  data
})
